(function () {
    var core = ecui,
        util = core.util,
        dom = ecui.dom;

    ecui.util.extend(NS.ui, {
    });
    ecui.esr.addRoute('info', {
        model: [
            // 'detail@GET /erp-management/venue/order/${orderSn}'
        ],
        weight: 2,
        main: 'myCente_info',
        view: 'info',
        frame: true,
        onbeforerequest: function (context) {

        },
        onbeforerender: function (context) {
            context.roleNames = mao.staffInfo.roleList.map(function (item) { return item.name; }).join(',');
            context.venueNames = mao.staffInfo.venueList.map(function (item) { return item.name; }).join(',');

            context.iosVersion = /(iPhone|iPad).*?OS (\d+(_\d+)?)/i.test(navigator.userAgent) ?  +(RegExp.$2.replace('_', '.')) : undefined;
        },
        onafterrender: function (context) {
        }
    });
}());